package com.top10.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author su
 * @since 2018-10-05
 */
@TableName("tb_order_detailed")
public class OrderDetailed extends Model<OrderDetailed> {

    private static final long serialVersionUID = 1L;

    /**
     * 序号,主键,自增,表唯一
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 主键,全局唯一
     */
	private String uuid;
    /**
     * 订单uuid
     */
	@TableField("order_uuid")
	private String orderUuid;
    /**
     * 商品名称
     */
	@TableField("goods_name")
	private String goodsName;
    /**
     * 商品详情uuid
     */
	@TableField("goods_detailed_uuid")
	private String goodsDetailedUuid;
	private String attributes;
    /**
     * 商品单价
     */
	private Double price;
    /**
     * 商品数量
     */
	private Integer quantity;
    /**
     * 小计
     */
	private Double subtotal;
    /**
     * 实际小计价格
     */
	@TableField("actual_subtotal")
	private Double actualSubtotal;
    /**
     * 备注
     */
	private String remark;
    /**
     * 用户备注
     */
	@TableField("user_remark")
	private String userRemark;
    /**
     * 是否删除
     */
	private Boolean isdeleted;
    /**
     * 创建时间
     */
	private Date createtime;
    /**
     * 创建者
     */
	private String creator;
    /**
     * 更新时间
     */
	private Date updatetime;
    /**
     * 修改者
     */
	private String mender;
	@TableField("rabate_uuid")
	private String rabateUuid;
	@TableField("ruser_uuid")
	private String ruserUuid;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUuid() {
		return uuid;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public String getOrderUuid() {
		return orderUuid;
	}

	public void setOrderUuid(String orderUuid) {
		this.orderUuid = orderUuid;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getGoodsDetailedUuid() {
		return goodsDetailedUuid;
	}

	public void setGoodsDetailedUuid(String goodsDetailedUuid) {
		this.goodsDetailedUuid = goodsDetailedUuid;
	}

	public String getAttributes() {
		return attributes;
	}

	public void setAttributes(String attributes) {
		this.attributes = attributes;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Double getSubtotal() {
		return subtotal;
	}

	public void setSubtotal(Double subtotal) {
		this.subtotal = subtotal;
	}

	public Double getActualSubtotal() {
		return actualSubtotal;
	}

	public void setActualSubtotal(Double actualSubtotal) {
		this.actualSubtotal = actualSubtotal;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getUserRemark() {
		return userRemark;
	}

	public void setUserRemark(String userRemark) {
		this.userRemark = userRemark;
	}

	public Boolean getIsdeleted() {
		return isdeleted;
	}

	public void setIsdeleted(Boolean isdeleted) {
		this.isdeleted = isdeleted;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public String getMender() {
		return mender;
	}

	public void setMender(String mender) {
		this.mender = mender;
	}

	public String getRabateUuid() {
		return rabateUuid;
	}

	public void setRabateUuid(String rabateUuid) {
		this.rabateUuid = rabateUuid;
	}

	public String getRuserUuid() {
		return ruserUuid;
	}

	public void setRuserUuid(String ruserUuid) {
		this.ruserUuid = ruserUuid;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "OrderDetailed{" +
			", id=" + id +
			", uuid=" + uuid +
			", orderUuid=" + orderUuid +
			", goodsName=" + goodsName +
			", goodsDetailedUuid=" + goodsDetailedUuid +
			", attributes=" + attributes +
			", price=" + price +
			", quantity=" + quantity +
			", subtotal=" + subtotal +
			", actualSubtotal=" + actualSubtotal +
			", remark=" + remark +
			", userRemark=" + userRemark +
			", isdeleted=" + isdeleted +
			", createtime=" + createtime +
			", creator=" + creator +
			", updatetime=" + updatetime +
			", mender=" + mender +
			", rabateUuid=" + rabateUuid +
			", ruserUuid=" + ruserUuid +
			"}";
	}
}
